
$('#selectClass').on('click', function(e) {
	e.preventDefault();
	var content = [
		'<i class="fa fa-bell-o"></i>',
		'<i class="fa fa-commenting-o"></i>',
		'<i class="fa fa-user"></i>',
		'<i class="fa fa-envelope-o"></i>',
		'<i class="fa fa-credit-card-alt"></i>',
		'<i class="fa fa-home"></i>',
		'<i class="fa fa-eye"></i>',
		'<i class="fa fa-feed"></i>',
		'<i class="fa fa-comments"></i>',
		'<i class="fa fa-hourglass-2"></i>',
		'<i class="fa fa-calendar"></i>',
		'<i class="fa fa-motorcycle"></i>',
	]

	content1 = content.join(' ');
	var d = dialog({
	    title: '选择图标',
	    content: content1,
	    width: 290,
	    quickClose: true,
	});
	d.show(document.getElementById('selectClass'));
})

init();
function init() {
	$(document).on('click', '.ui-dialog-content > i', function() {
		var objClass = $(this).attr('class');
		$('#selectIcon').html(objClass);
		$('#selectIconInput').val(objClass)
	})
}